package top.sdwu_top.kbase.entity;

import top.sdwu_top.kbase.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

import java.util.List;

/**
 * <p>
 * 知识标签
 * </p>
 *
 * @author zhipeng.duan@nvr-china.com
 * @since 2020-02-20
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="KbaseKnowlageTag对象", description="知识标签")
public class KbaseKnowledgeTag extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "标签名")
    @TableField("TAG_NAME")
    private String tagName;

    @ApiModelProperty(value = "标签内容")
    @TableField("TAG_CONTENT")
    private String tagContent;

    @ApiModelProperty(value = "父级ID")
    @TableField("PARENT_ID")
    private String parentId;

    @TableField(exist = false)
    private List<KbaseKnowledgeTag> childList;


}
